<template>
  <div>
    <div class="image_noWidth">
      <img src="../../../public/img/222.jpg" />
    </div>
    <div class="over">
      <div class="header">
        <div
          class="product-item"
          v-for="(item, index) in arrList"
          :key="index"
          @click="fun(item.sid)"
        >
          <dl>
            <dt><img src="../../../public/img/26.webp" /></dt>
            <dd class="name">
             【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲
            </dd>
            <p>￥269</p>
          </dl>
          <dl class="artisan-item">
            <dt class="avatar"><img :src="item.pic" /></dt>
            <dd class="user">
              <p>{{ item.susername }}</p>
              <p class="iconfont">★★★</p>
            </dd>
          </dl>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getlink } from "@/api/getapi.js";
export default {
  data() {
    return {
      arrList: [],
      // tilie:[
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/22.webp",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/23.webp",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/20.jpg",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/19.jpg",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/18.jpg",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/17.png",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/16.webp",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/15.webp",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/14.webp",user:"兰昕儿"},
      //     {img:"img/26.webp",val:" 【夏日泡沫】河狸家美甲节定制款透色极光自由主题美甲 ",price:"￥269",img1:"img/13.webp",user:"兰昕儿"},
      // ],
    };
  },
  methods: {
    fun(num) {
      console.log(num);
      this.$router.push({path:"/De",query:{jia:num}});
    },
  },
  mounted() {
    getlink("/api/shop/findAllShop").then((res) => {
      console.log(res);
      this.arrList = res.data;
    });
  },
};
</script>

<style scoped>
.image_noWidth {
  width: 100%;
}
.image_noWidth img {
  width: 100%;
}
.over {
  overflow: auto;
  background: rgb(238, 238, 238);
}
.header {
  display: flex;
  width: 310%;
  border-bottom: 0.3rem solid rgb(238, 238, 238);
}
.product-item {
  width: 30%;
  height: 7rem;
  background: rgb(255, 255, 255);
  margin-right: 0.22rem;
}
dl img {
  width: 100%;
}
.name {
  margin-top: 0.1rem;
  font-size: 0.22rem;
}
p {
  color: red;
  font-size: 0.3rem;
  margin-top: 0.2rem;
}
.artisan-item {
  width: 100%;
  display: flex;
}
.avatar {
  width: 30%;
  margin-top: 0.4rem;
}
.avatar img {
  width: 100%;
  border-radius: 50%;
}
.user {
  margin-left: 0.2rem;
  margin-top: 0.2rem;
}
p {
  margin-top: 0.1rem;
  font-size: 0.3rem;
}
.iconfont {
  margin-top: -0.1rem;
}
</style>
